-- GENERATED SPELL FOR [Risen Guard] --


function spell0_10489(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(15655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10489', 2303, 1)
end

function spell1_10489(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10489', 30321, 1)
end

function Sorts_10489(pUnit, Event)
local choix_sorts_10489 = math.random(0, 1)
if choix_sorts_10489 == 0 then
pUnit:RegisterEvent('spell0_10489', 1, 1)
end
if choix_sorts_10489 == 1 then
pUnit:RegisterEvent('spell1_10489', 1, 1)
end
end

function mob10489_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10489', math.random(1500, 3000), 1)
end

function mob10489_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10489_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10489_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10489, 1, 'mob10489_Action')
RegisterUnitEvent(10489, 2, 'mob10489_Leave')
RegisterUnitEvent(10489, 3, 'mob10489_Kill')
RegisterUnitEvent(10489, 4, 'mob10489_Die')
